﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using DotNetNuke.Services.Localization;

namespace Ventrian.PageGenerated
{
    public partial class PageGenerated : DotNetNuke.UI.Skins.SkinObjectBase
    {
        private DateTime _startTime;
        private DateTime _endTime;

        protected void Page_Init(object sender, EventArgs e)
        {
            _startTime = DateTime.Now;
        }

        protected void Page_PreRender(object sender, EventArgs e)
        {
            _endTime = DateTime.Now;

            TimeSpan timeDifference = _endTime.Subtract(_startTime);
            litPageGenerated.Text = timeDifference.TotalSeconds.ToString();
        }
    }
}